package com.databinding.jetpacktesting.room

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

/**
 * Created by harisucici on 2020/3/14
 * Class description:
 */
@Entity
class WordEntity(@field:ColumnInfo(name = "english") var word: String, @field:ColumnInfo(name = "chinese_meaning") var chinese: String) {
    @PrimaryKey(autoGenerate = true) //主键,自动生成
    var id = 0
}